#!/usr/bin/python
# -*- coding: utf-8 -*-
import time

def string_toTimestamp(st):
    return time.mktime(time.strptime(st, "%Y-%m-%d %H:%M"))

def filterStringForClipper(oldString,kongge=''):

    newString = oldString.replace("#","☆")
    newString = newString.replace("\n", "[nr]")
    newString = newString.replace(' ', kongge)

    return newString
